# 向函数传递列表
def greet_users(names):
    for name in names:
        print(f"Hello, {name.title()}!")

user_names = ['a', 'b']
greet_users(user_names)